<template>
  <el-input :placeholder="config.placeholder||'请输入'"
            :disabled="config.disabled||false"
            clearable size="small"
            :value="value" @input="updateValue"/>
</template>

<script>
export default {
  name: "config-input",
  props: {
    value: String,
    config: {
      type: Object,
      default: {}
    },
  },
  methods:{
    updateValue(value) {
      this.$emit('updateValue', value);
    }
  }
}
</script>

<style scoped>

</style>
